<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory" %>
<%response.setStatus(200);%>

<%
	Throwable ex = null;
	if (exception != null)
		ex = exception;
	if (request.getAttribute("javax.servlet.error.exception") != null)
		ex = (Throwable) request.getAttribute("javax.servlet.error.exception");

	//记录日志
	Logger logger = LoggerFactory.getLogger("500.jsp");
	logger.error(ex.getMessage(), ex);
%>

<!DOCTYPE html>
<html>
<head>
	<title>500 - 系统内部错误</title>
	<link href="<%=request.getContextPath() %>/resources/css/error/style_500.css" rel="stylesheet" type="text/css" />
	
</head>
<body>
	<div id="main">
		<!-- header -->
		<div id="header">
			<h1>系统发生错误<span>500 - 系统错误</span></h1>
		</div>
		<!-- content -->
		<div id="content">
			<ul class="nav">
         	<li class="home"><a href="#">首页</a></li>
            <li class="site_map"><a href="#">返回</a></li>
            <li class="search"><a href="#">联系管理员</a></li>
         </ul>
		</div>
	</div>
</body>
</html>
